﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsForms_Logic_Questions_Generator.Operators;

namespace WindowsForms_Logic_Questions_Generator.Operators
{
    class RangeButton : DataIntInterface
    {
        private String m_From;
        private String m_To;

        public RangeButton(String From, String To)
        {
            m_From = From;
            m_To = To;
        }
        
        public override String ToString()  
        {
            return (" {" + m_From + ".." + m_To + "} ");
        }

        public override String GetOperation()
        {
            return "Operation Range";
        }
        public int from
        {
            get
            {
                int number = Int32.Parse(m_From);
                return number;
            }
        }
        public int to
        {
            get
            {
                int number = Int32.Parse(m_To);
                return number;
            }
        }
    }
}
